package com.smh.a01DateDemo1;

import java.util.Date;

public class DateDemo1 {
    public static void main(String[] args) {
        //时间相关类
//        JDk7以前
        Date date = new Date();
        System.out.println(date);

        Date date1 = new Date(0L);
        System.out.println(date1);
        date1.setTime(1000L);
        System.out.println(date1);
        System.out.println(date1.getTime());//获取毫秒值



    }
}
